/**
 * 分类模型
 * 
*/
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("sort", {
        id: {
            type: Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4,
        },
        sortName: {
            type: Sequelize.STRING,
            notNull: true,
            notEmpty: true,
            comment: '分类名称',
            field:'sort_name'
        },
        state: {
            type: Sequelize.BOOLEAN,
            comment: '状态',
            defaultValue: true
        },
        sortDesc: {
            type: Sequelize.STRING,
            comment: '分类描述',
            field:'sort_desc'
        },
    })
}